public class TestDemo {
    public static void main(String[] args) {
        int[] arr = {1,6,7,9,16,15};
        int length = arr.length;
        System.out.println("该数组是否为递增数组: "+isIncrease(arr, length));
    }

    public static boolean isIncrease(int[] array, int len){
        if(array == null || len <= 0){
            return false;
        }
        if(len == 1){
            return true;
        }
        return (array[len-1] > array[len-2]) &&
                isIncrease(array,len-1);
    }
}